package operation;

import book.Book;
import book.BookList;

/**
 * @ClassDescription:
 * @JdkVersion: 1.8
 * @Author: 李白
 * @Created: 2024/7/29 22:00
 */
public class ShowOperation implements IOPeration{
    @Override
    public void work(BookList bookList) {
        int currentSize = bookList.getUsedSize();
        System.out.println("展示书籍");
        for (int i = 0; i < currentSize ; i++) {
            Book book = bookList.getBook(i);
            System.out.println(book);
        }
    }
}
